{extend name="base"}
{block name="body"}
<ol class="breadcrumb">
  <li><a href="#">首页</a></li>
  <li><a href="#">商品管理</a></li>
  <li class="active">品牌管理</li>
</ol>
<div class="panel panel-default">
	<div class="panel-heading">
		<a href="{:url('brand_add')}" class="btn btn-info">添加品牌</a>
	</div>
	<table class="table table-bordered">
		<colgroup>
	      <col style="width: 1%;">
	      <col style="width: 10%;">
	      <col style="width: 10%;">
	      <col style="width: 30%;">
	      <col style="width: 10%;">
	    </colgroup>
		<thead>
	      <tr>
	        <th>id</th>
	        <th>品牌名称</th>
	        <th>品牌logo</th>
	        <th>品牌首字母</th>
	        <th>操作</th>
	      </tr>
	    </thead>
	    <tbody>
	    	{volist name="brandList" id="brand_list"}
	    	<tr class="form-group">
	    		<td>{$brand_list.id}</td>
	    		<td>{$brand_list.name}</td>
	    		<td><img src="/{$brand_list.logo}" width="88" height="31"/></td>
	    		<td>{$brand_list.initial}</td>
	    		<td>
	    			<a href="" class="btn btn-default">修改</a>
	    			<a href="javascript:void(0);" onclick="delCategory({$brand_list.id})"  class="btn btn-default">删除</a>
	    		</td>
	    	</tr>
	    	{/volist}
	    </tbody>
	</table>
</div>
{/block}